package com.spremoteservice.android;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;

public class Utils {
    public static void ShowDialog(Activity context, String message, String title){
		AlertDialog.Builder dlgAlert  = new AlertDialog.Builder(context);

		dlgAlert.setMessage(message);
		dlgAlert.setTitle(title);
		dlgAlert.setPositiveButton("OK", null);
		dlgAlert.setCancelable(true);
		dlgAlert.create().show();
		
		dlgAlert.setPositiveButton("Ok",
			    new DialogInterface.OnClickListener() {
			        public void onClick(DialogInterface dialog, int which) {
			          //dismiss the dialog  
			        }
			    });
    }

}
